package exp.day04;

import java.util.Collections;
import java.util.Scanner;
import java.util.Vector;

//去重排序，从键盘输入若干个数，最后降序输出不重复的数字（用Vector实现）
public class Exp01Vector {
    public static void main(String[] args) {
        Vector<Integer> v = new Vector<Integer>();
        Scanner cin = new Scanner(System.in);
        while (cin.hasNext()) {
            int x = cin.nextInt();
            if (v.indexOf(x) >= 0) continue;    //去重，查到相同的则输出位置0-~，否则输出-1
            v.add(x);
        }
        Collections.sort(v);    //排序
        Collections.reverse(v);     //反装
        for (Integer i : v) {   //输出
            System.out.print(i + " ");
        }
    }
}
